#include <stdio.h>
int main(void){
	int m,i,sum=0;
	printf("plz enter the upper bound:\n");
	scanf("%d",&m);
	for(i=1;i<=m;i++){
		sum=sum+i*(i+1);
	}
	printf("SUM=%d",sum);
	return 0;
}
